package sv.gob.mh.dgii.service.rc;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import sv.gob.mh.dgii.dao.hibernate.Dao;
import sv.gob.mh.dgii.dao.rc.RcDomicilioDao;
import sv.gob.mh.dgii.model.RcDomicilio;
import sv.gob.mh.dgii.service.BaseService;

@Service
@Transactional(readOnly = true, propagation = Propagation.REQUIRED)
public class RcDomicilioServiceImpl extends BaseService implements RcDomicilioService {

    @Autowired
    private RcDomicilioDao rcDomicilioDao;

    @Override
    public Dao getDao() {
        return rcDomicilioDao; 
	} 
    
    public List<RcDomicilio> obtenerDomicilios(String nit){
        return rcDomicilioDao.obtenerDomicilios(nit);
    }
}